package cate.game.train.gem.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

import java.util.List;

public class GemFastOnReq implements MsgInput {
    public String heroUid;
    @NoteField("宝石uid们")
    public List<String> gemUids;
    @NoteField("装备uid们")
    public List<String> equipUids;
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = game.train.gem.fastOnGems(cc.getRole(), gemUids, heroUid, equipUids);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.GEM_FAST_ON_REQ;
    }
}
